if item 2 of origLoc<=20 then set loc of card window to 0,20
put "ok" into again
repeat until again is "cancel"
Answer "Click 'Ok' to toggle the titleBar..." with "Ok" or "Cancel"
put it into again
if again is "Ok" then
titleBar
go to this card
end if
end repeat
titleBar show
set loc of card window to origLoc
end mouseUp
-- part contents for background part 13
----- text -----
34
-- part contents for background part 2
----- text -----
TitleBar
-- part contents for background part 3
----- text -----
TitleBar is an XCMD which allows you to hide or show the title bar on HyperCard's main window.
-- part contents for background part 30
----- text -----
XCMD
-- part contents for background part 10
----- text -----
Syntax:
TitleBar <mode>
TitleBar accepts one parameter <mode>:
<mode> can be:
ΓÇó toggle -- toggles the titlebar
ΓÇó hide -- hides the titlebar
ΓÇó show -- shows the titlebar
ΓÇó <default> -- same as toggle
TitleBar first checks to see if the parameter passed in is the same as the current state of the title bar. If it is, then TitleBar does nothing. Otherwise, TitleBar hides the window, then toggles the title bar, and finally shows the window. To toggle the title bar, TitleBar toggles the variation code of the window definition function
(i.e. the windowDefProc) of HyperCardΓÇÖs main window between plainDBox and noGrowDocProc.
See Inside Mac I-298 for more info on this concept.